package cn.lili.modules.system.entity.dos;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 激活码表
 * </p>
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("li_vip_active_code")
@ApiModel(value="LiVipActiveCode", description="激活码表")
public class LiVipActiveCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @TableField("create_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("create_by")
    private String createBy;

    @TableField("update_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField("update_by")
    private String updateBy;

    @TableField("delete_flag")
    private String deleteFlag;

    @ApiModelProperty(value = "激活码")
    @TableField("active_code")
    private String activeCode;

    @ApiModelProperty(value = "供应商ID")
    @TableField("supplier_id")
    private String supplierId;

    @ApiModelProperty(value = "供应商名称")
    @TableField("supplier_name")
    private String supplierName;


    @ApiModelProperty(value = "激活码状态")
    @TableField("active_status")
    private Integer activeStatus;

    @ApiModelProperty(value = "使用人ID")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "字典time_type")
    @TableField("time_type")
    private Integer timeType;

    @ApiModelProperty(value = "使用时间")
    @TableField("use_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date useTime;

    @ApiModelProperty(value = "使用人名称")
    @TableField("user_name")
    private String userName;



}

